!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("rb_wixui.thunderbolt[LinkBar_Responsive]",["react"],t):"object"==typeof exports?exports["rb_wixui.thunderbolt[LinkBar_Responsive]"]=t(require("react")):e["rb_wixui.thunderbolt[LinkBar_Responsive]"]=t(e.React)}("undefined"!=typeof self?self:this,function(e){return function(){var t={"Xdf/":function(t){"use strict";t.exports=e},Fe5V:function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;tObject.entries(e).reduce((e,[t,i])=>(t.includes("data-")&&(e[t]=i),e),{});const u=13,h=27;function d(e){return t=>{t.keyCode===e&&(t.preventDefault(),t.stopPropagation(),t.currentTarget.click())}}const g=d(32),p=d(u),_=e=>{p(e),g(e)},T=(d(h),{root:"linkElement"}),f=(e,t)=>{const{href:a,role:n,target:o,rel:c,className:s="",children:u,linkPopupId:h,anchorDataId:d,anchorCompId:f,tabIndex:m,dataTestId:I=T.root,title:L,onClick:E,onDoubleClick:A,onMouseEnter:b,onMouseLeave:w,onFocus:O,onFocusCapture:M,onBlurCapture:y,"aria-live":G,"aria-disabled":R,"aria-label":F,"aria-labelledby":C,"aria-pressed":S,"aria-expanded":P,"aria-describedby":N,"aria-haspopup":k,"aria-current":v,dataPreview:x,dataPart:B}=e,H=void 0!==e.activateByKey?e.activateByKey:(e=>e?"SpaceOrEnter":"Enter")(h);let Y;switch(H){case"Enter":Y=p;break;case"Space":Y=g;break;case"SpaceOrEnter":Y=_;break;default:Y=void 0}return void 0!==a||h?r.createElement("a",i()({},l(e),{"data-testid":I,"data-popupid":h,"data-anchor":d,"data-anchor-comp-id":f,"data-preview":x,"data-part":B,href:a||void 0,target:o,role:h?"button":n,rel:c,className:s,onKeyDown:Y,"aria-live":G,"aria-disabled":R,"aria-label":F,"aria-labelledby":C,"aria-pressed":S,"aria-expanded":P,"aria-haspopup":k,"aria-describedby":N,"aria-current":v,title:L,onClick:E,onMouseEnter:b,onMouseLeave:w,onDoubleClick:A,onFocus:O,onFocusCapture:M,onBlurCapture:y,ref:t,tabIndex:h?0:m}),u):r.createElement("div",i()({},l(e),{"data-testid":I,"data-preview":x,"data-part":B,className:s,tabIndex:m,"aria-label":F,"aria-labelledby":C,"aria-haspopup":k,"aria-disabled":R,"aria-expanded":P,title:L,role:n,onClick:E,onDoubleClick:A,onMouseEnter:b,onMouseLeave:w,ref:t}),u)};var m=r.forwardRef(f);var I="jhxvbR";const L="v1",E=2,A=1920,b=1920,w=1e3,O=1e3,M={SCALE_TO_FILL:"fill",SCALE_TO_FIT:"fit",STRETCH:"stretch",ORIGINAL_SIZE:"original_size",TILE:"tile",TILE_HORIZONTAL:"tile_horizontal",TILE_VERTICAL:"tile_vertical",FIT_AND_TILE:"fit_and_tile",LEGACY_STRIP_TILE:"legacy_strip_tile",LEGACY_STRIP_TILE_HORIZONTAL:"legacy_strip_tile_horizontal",LEGACY_STRIP_TILE_VERTICAL:"legacy_strip_tile_vertical",LEGACY_STRIP_SCALE_TO_FILL:"legacy_strip_fill",LEGACY_STRIP_SCALE_TO_FIT:"legacy_strip_fit",LEGACY_STRIP_FIT_AND_TILE:"legacy_strip_fit_and_tile",LEGACY_STRIP_ORIGINAL_SIZE:"legacy_strip_original_size",LEGACY_ORIGINAL_SIZE:"actual_size",LEGACY_FIT_WIDTH:"fitWidth",LEGACY_FIT_HEIGHT:"fitHeight",LEGACY_FULL:"full",LEGACY_BG_FIT_AND_TILE:"legacy_tile",LEGACY_BG_FIT_AND_TILE_HORIZONTAL:"legacy_tile_horizontal",LEGACY_BG_FIT_AND_TILE_VERTICAL:"legacy_tile_vertical",LEGACY_BG_NORMAL:"legacy_normal"},y={FIT:"fit",FILL:"fill",FILL_FOCAL:"fill_focal",CROP:"crop",LEGACY_CROP:"legacy_crop",LEGACY_FILL:"legacy_fill"},G={CENTER:"center",TOP:"top",TOP_LEFT:"top_left",TOP_RIGHT:"top_right",BOTTOM:"bottom",BOTTOM_LEFT:"bottom_left",BOTTOM_RIGHT:"bottom_right",LEFT:"left",RIGHT:"right"},R={[G.CENTER]:{x:.5,y:.5},[G.TOP_LEFT]:{x:0,y:0},[G.TOP_RIGHT]:{x:1,y:0},[G.TOP]:{x:.5,y:0},[G.BOTTOM_LEFT]:{x:0,y:1},[G.BOTTOM_RIGHT]:{x:1,y:1},[G.BOTTOM]:{x:.5,y:1},[G.RIGHT]:{x:1,y:.5},[G.LEFT]:{x:0,y:.5}},F={center:"c",top:"t",top_left:"tl",top_right:"tr",bottom:"b",bottom_left:"bl",bottom_right:"br",left:"l",right:"r"},C={BG:"bg",IMG:"img",SVG:"svg"},S={AUTO:"auto",CLASSIC:"classic",SUPER:"super"},P={classic:1,super:2},N={radius:"0.66",amount:"1.00",threshold:"0.01"},k={uri:"",css:{img:{},container:{}},attr:{img:{},container:{}},transformed:!1},v=25e6,x=[1.5,2,4],B={HIGH:{size:196e4,quality:90,maxUpscale:1},MEDIUM:{size:36e4,quality:85,maxUpscale:1},LOW:{size:16e4,quality:80,maxUpscale:1.2},TINY:{size:0,quality:80,maxUpscale:1.4}},H={HIGH:"HIGH",MEDIUM:"MEDIUM",LOW:"LOW",TINY:"TINY"},Y={CONTRAST:"contrast",BRIGHTNESS:"brightness",SATURATION:"saturation",HUE:"hue",BLUR:"blur"},U={JPG:"jpg",JPEG:"jpeg",JPE:"jpe",PNG:"png",WEBP:"webp",WIX_ICO_MP:"wix_ico_mp",WIX_MP:"wix_mp",GIF:"gif",SVG:"svg",AVIF:"avif",UNRECOGNIZED:"unrecognized"},$={AVIF:"AVIF",PAVIF:"PAVIF"};U.JPG,U.JPEG,U.JPE,U.PNG,U.GIF,U.WEBP;function D(e,...t){return function(...i){const a=i[i.length-1]||{},n=[e[0]];return t.forEach(function(t,r){const o=Number.isInteger(t)?i[t]:a[t];n.push(o,e[r+1])}),n.join("")}}function j(e){return e[e.length-1]}const z=[U.PNG,U.JPEG,U.JPG,U.JPE,U.WIX_ICO_MP,U.WIX_MP,U.WEBP,U.AVIF],V=[U.JPEG,U.JPG,U.JPE];function Z(e,t,i){return i&&t&&!(!(a=t.id)||!a.trim()||"none"===a.toLowerCase())&&Object.values(M).includes(e);var a}function W(e,t,i,a){if(/(^https?)|(^data)|(^\/\/)/.test(e))return!1;if(!function(e,t,i){return!(J(e)||Q(e))||!t||i}(e,t,i))return!1;const n=function(e){return z.includes(ae(e))}(e),r=function(e,t,i){return!(!X(e)||!t&&!i)}(e,i,a);return n||r}function q(e){return ae(e)===U.PNG}function J(e){return ae(e)===U.WEBP}function X(e){return ae(e)===U.GIF}function Q(e){return ae(e)===U.AVIF}const K=["/","\\","?","<",">","|","\u201c",":",'"'].map(encodeURIComponent),ee=["\\.","\\*"],te="_";function ie(e){return function(e){return V.includes(ae(e))}(e)?U.JPG:q(e)?U.PNG:J(e)?U.WEBP:X(e)?U.GIF:Q(e)?U.AVIF:U.UNRECOGNIZED}function ae(e){return(/[.]([^.]+)$/.exec(e)&&/[.]([^.]+)$/.exec(e)[1]||"").toLowerCase()}function ne(e,t,i,a,n){let r;return r=n===y.FILL?function(e,t,i,a){return Math.max(i/e,a/t)}(e,t,i,a):n===y.FIT?function(e,t,i,a){return Math.min(i/e,a/t)}(e,t,i,a):1,r}function re(e,t,i,a,n,r){e=e||a.width,t=t||a.height;const{scaleFactor:o,width:c,height:s}=function(e,t,i,a,n){let r,o=i,c=a;if(r=ne(e,t,i,a,n),n===y.FIT&&(o=e*r,c=t*r),o&&c&&o*c>v){const i=Math.sqrt(v/(o*c));o*=i,c*=i,r=ne(e,t,o,c,n)}return{scaleFactor:r,width:o,height:c}}(e,t,a.width*n,a.height*n,i);return function(e,t,i,a,n,r,o){const{optimizedScaleFactor:c,upscaleMethodValue:s,forceUSM:l}=function(e,t,i,a){if("auto"===a)return function(e,t){const i=le(e,t);return{optimizedScaleFactor:B[i].maxUpscale,upscaleMethodValue:P.classic,forceUSM:!1}}(e,t);if("super"===a)return function(e){return{optimizedScaleFactor:j(x),upscaleMethodValue:P.super,forceUSM:!(x.includes(e)||e>j(x))}}(i);return function(e,t){const i=le(e,t);return{optimizedScaleFactor:B[i].maxUpscale,upscaleMethodValue:P.classic,forceUSM:!1}}(e,t)}(e,t,r,n);let u=i,h=a;if(r<=c)return{width:u,height:h,scaleFactor:r,upscaleMethodValue:s,forceUSM:l,cssUpscaleNeeded:!1};switch(o){case y.FILL:u=i*(c/r),h=a*(c/r);break;case y.FIT:u=e*c,h=t*c}return{width:u,height:h,scaleFactor:c,upscaleMethodValue:s,forceUSM:l,cssUpscaleNeeded:!0}}(e,t,c,s,r,o,i)}function oe(e,t,i,a){const n=se(i)||function(e=G.CENTER){return R[e]}(a);return{x:Math.max(0,Math.min(e.width-t.width,n.x*e.width-t.width/2)),y:Math.max(0,Math.min(e.height-t.height,n.y*e.height-t.height/2)),width:Math.min(e.width,t.width),height:Math.min(e.height,t.height)}}function ce(e){return e.alignment&&F[e.alignment]||F[G.CENTER]}function se(e){let t;return!e||"number"!=typeof e.x||isNaN(e.x)||"number"!=typeof e.y||isNaN(e.y)||(t={x:ue(Math.max(0,Math.min(100,e.x))/100,2),y:ue(Math.max(0,Math.min(100,e.y))/100,2)}),t}function le(e,t){const i=e*t;return i>B[H.HIGH].size?H.HIGH:i>B[H.MEDIUM].size?H.MEDIUM:i>B[H.LOW].size?H.LOW:H.TINY}function ue(e,t){const i=Math.pow(10,t||0);return(e*i/i).toFixed(t)}function he(e){return e&&e.upscaleMethod&&S[e.upscaleMethod.toUpperCase()]||S.AUTO}function de(e,t){const i=J(e)||Q(e);return ae(e)===U.GIF||i&&t}const ge={isMobile:!1},pe=function(e){return ge[e]};function _e(){if("undefined"!=typeof window&&"undefined"!=typeof navigator){const t=window.matchMedia&&window.matchMedia("(max-width: 767px)").matches,i=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);e=t&&i,ge["isMobile"]=e}var e}function Te(e,t){const i={css:{container:{}}},{css:a}=i,{fittingType:n}=e;switch(n){case M.ORIGINAL_SIZE:case M.LEGACY_ORIGINAL_SIZE:case M.LEGACY_STRIP_ORIGINAL_SIZE:a.container.backgroundSize="auto",a.container.backgroundRepeat="no-repeat";break;case M.SCALE_TO_FIT:case M.LEGACY_STRIP_SCALE_TO_FIT:a.container.backgroundSize="contain",a.container.backgroundRepeat="no-repeat";break;case M.STRETCH:a.container.backgroundSize="100% 100%",a.container.backgroundRepeat="no-repeat";break;case M.SCALE_TO_FILL:case M.LEGACY_STRIP_SCALE_TO_FILL:a.container.backgroundSize="cover",a.container.backgroundRepeat="no-repeat";break;case M.TILE_HORIZONTAL:case M.LEGACY_STRIP_TILE_HORIZONTAL:a.container.backgroundSize="auto",a.container.backgroundRepeat="repeat-x";break;case M.TILE_VERTICAL:case M.LEGACY_STRIP_TILE_VERTICAL:a.container.backgroundSize="auto",a.container.backgroundRepeat="repeat-y";break;case M.TILE:case M.LEGACY_STRIP_TILE:a.container.backgroundSize="auto",a.container.backgroundRepeat="repeat";break;case M.LEGACY_STRIP_FIT_AND_TILE:a.container.backgroundSize="contain",a.container.backgroundRepeat="repeat";break;case M.FIT_AND_TILE:case M.LEGACY_BG_FIT_AND_TILE:a.container.backgroundSize="auto",a.container.backgroundRepeat="repeat";break;case M.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:a.container.backgroundSize="auto",a.container.backgroundRepeat="repeat-x";break;case M.LEGACY_BG_FIT_AND_TILE_VERTICAL:a.container.backgroundSize="auto",a.container.backgroundRepeat="repeat-y";break;case M.LEGACY_BG_NORMAL:a.container.backgroundSize="auto",a.container.backgroundRepeat="no-repeat"}switch(t.alignment){case G.CENTER:a.container.backgroundPosition="center center";break;case G.LEFT:a.container.backgroundPosition="left center";break;case G.RIGHT:a.container.backgroundPosition="right center";break;case G.TOP:a.container.backgroundPosition="center top";break;case G.BOTTOM:a.container.backgroundPosition="center bottom";break;case G.TOP_RIGHT:a.container.backgroundPosition="right top";break;case G.TOP_LEFT:a.container.backgroundPosition="left top";break;case G.BOTTOM_RIGHT:a.container.backgroundPosition="right bottom";break;case G.BOTTOM_LEFT:a.container.backgroundPosition="left bottom"}return i}const fe={[G.CENTER]:"center",[G.TOP]:"top",[G.TOP_LEFT]:"top left",[G.TOP_RIGHT]:"top right",[G.BOTTOM]:"bottom",[G.BOTTOM_LEFT]:"bottom left",[G.BOTTOM_RIGHT]:"bottom right",[G.LEFT]:"left",[G.RIGHT]:"right"},me={position:"absolute",top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ie(e,t){const i={css:{container:{},img:{}}},{css:a}=i,{fittingType:n}=e,r=t.alignment;switch(a.container.position="relative",n){case M.ORIGINAL_SIZE:case M.LEGACY_ORIGINAL_SIZE:e.parts&&e.parts.length?(a.img.width=e.parts[0].width,a.img.height=e.parts[0].height):(a.img.width=e.src.width,a.img.height=e.src.height);break;case M.SCALE_TO_FIT:case M.LEGACY_FIT_WIDTH:case M.LEGACY_FIT_HEIGHT:case M.LEGACY_FULL:a.img.width=t.width,a.img.height=t.height,a.img.objectFit="contain",a.img.objectPosition=fe[r]||"unset";break;case M.LEGACY_BG_NORMAL:a.img.width="100%",a.img.height="100%",a.img.objectFit="none",a.img.objectPosition=fe[r]||"unset";break;case M.STRETCH:a.img.width=t.width,a.img.height=t.height,a.img.objectFit="fill";break;case M.SCALE_TO_FILL:a.img.width=t.width,a.img.height=t.height,a.img.objectFit="cover"}if("number"==typeof a.img.width&&"number"==typeof a.img.height&&(a.img.width!==t.width||a.img.height!==t.height)){const e=Math.round((t.height-a.img.height)/2),i=Math.round((t.width-a.img.width)/2);Object.assign(a.img,me,function(e,t,i){return{[G.TOP_LEFT]:{top:0,left:0},[G.TOP_RIGHT]:{top:0,right:0},[G.TOP]:{top:0,left:t},[G.BOTTOM_LEFT]:{bottom:0,left:0},[G.BOTTOM_RIGHT]:{bottom:0,right:0},[G.BOTTOM]:{bottom:0,left:t},[G.RIGHT]:{top:e,right:0},[G.LEFT]:{top:e,left:0},[G.CENTER]:{width:i.width,height:i.height,objectFit:"none"}}}(e,i,t)[r])}return i}function Le(e,t){const i={css:{container:{}},attr:{container:{},img:{}}},{css:a,attr:n}=i,{fittingType:r}=e,o=t.alignment,{width:c,height:s}=e.src;let l;switch(a.container.position="relative",r){case M.ORIGINAL_SIZE:case M.LEGACY_ORIGINAL_SIZE:case M.TILE:e.parts&&e.parts.length?(n.img.width=e.parts[0].width,n.img.height=e.parts[0].height):(n.img.width=c,n.img.height=s),n.img.preserveAspectRatio="xMidYMid slice";break;case M.SCALE_TO_FIT:case M.LEGACY_FIT_WIDTH:case M.LEGACY_FIT_HEIGHT:case M.LEGACY_FULL:n.img.width="100%",n.img.height="100%",n.img.transform="",n.img.preserveAspectRatio="";break;case M.STRETCH:n.img.width=t.width,n.img.height=t.height,n.img.x=0,n.img.y=0,n.img.transform="",n.img.preserveAspectRatio="none";break;case M.SCALE_TO_FILL:W(e.src.id)?(n.img.width=t.width,n.img.height=t.height):(l=function(e,t,i,a,n){const r=ne(e,t,i,a,n);return{width:Math.round(e*r),height:Math.round(t*r)}}(c,s,t.width,t.height,y.FILL),n.img.width=l.width,n.img.height=l.height),n.img.x=0,n.img.y=0,n.img.transform="",n.img.preserveAspectRatio="xMidYMid slice"}if("number"==typeof n.img.width&&"number"==typeof n.img.height&&(n.img.width!==t.width||n.img.height!==t.height)){let e,i,a=0,c=0;r===M.TILE?(e=t.width%n.img.width,i=t.height%n.img.height):(e=t.width-n.img.width,i=t.height-n.img.height);const s=Math.round(e/2),l=Math.round(i/2);switch(o){case G.TOP_LEFT:a=0,c=0;break;case G.TOP:a=s,c=0;break;case G.TOP_RIGHT:a=e,c=0;break;case G.LEFT:a=0,c=l;break;case G.CENTER:a=s,c=l;break;case G.RIGHT:a=e,c=l;break;case G.BOTTOM_LEFT:a=0,c=i;break;case G.BOTTOM:a=s,c=i;break;case G.BOTTOM_RIGHT:a=e,c=i}n.img.x=a,n.img.y=c}return n.container.width=t.width,n.container.height=t.height,n.container.viewBox=[0,0,t.width,t.height].join(" "),i}function Ee(e,t,i){let a;switch(t.crop&&(a=function(e,t){const i=Math.max(0,Math.min(e.width,t.x+t.width)-Math.max(0,t.x)),a=Math.max(0,Math.min(e.height,t.y+t.height)-Math.max(0,t.y));return i&&a&&(e.width!==i||e.height!==a)?{x:Math.max(0,t.x),y:Math.max(0,t.y),width:i,height:a}:null}(t,t.crop),a&&(e.src.width=a.width,e.src.height=a.height,e.src.isCropped=!0,e.parts.push(be(a)))),e.fittingType){case M.SCALE_TO_FIT:case M.LEGACY_FIT_WIDTH:case M.LEGACY_FIT_HEIGHT:case M.LEGACY_FULL:case M.FIT_AND_TILE:case M.LEGACY_BG_FIT_AND_TILE:case M.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case M.LEGACY_BG_FIT_AND_TILE_VERTICAL:case M.LEGACY_BG_NORMAL:e.parts.push(Ae(e,i));break;case M.SCALE_TO_FILL:e.parts.push(function(e,t){const i=re(e.src.width,e.src.height,y.FILL,t,e.devicePixelRatio,e.upscaleMethod),a=se(e.focalPoint);return{transformType:a?y.FILL_FOCAL:y.FILL,width:Math.round(i.width),height:Math.round(i.height),alignment:ce(t),focalPointX:a&&a.x,focalPointY:a&&a.y,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}(e,i));break;case M.STRETCH:e.parts.push(function(e,t){const i=ne(e.src.width,e.src.height,t.width,t.height,y.FILL),a={...t};return a.width=e.src.width*i,a.height=e.src.height*i,Ae(e,a)}(e,i));break;case M.TILE_HORIZONTAL:case M.TILE_VERTICAL:case M.TILE:case M.LEGACY_ORIGINAL_SIZE:case M.ORIGINAL_SIZE:a=oe(e.src,i,e.focalPoint,i.alignment),e.src.isCropped?(Object.assign(e.parts[0],a),e.src.width=a.width,e.src.height=a.height):e.parts.push(be(a));break;case M.LEGACY_STRIP_TILE_HORIZONTAL:case M.LEGACY_STRIP_TILE_VERTICAL:case M.LEGACY_STRIP_TILE:case M.LEGACY_STRIP_ORIGINAL_SIZE:e.parts.push(function(e){return{transformType:y.LEGACY_CROP,width:Math.round(e.width),height:Math.round(e.height),alignment:ce(e),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case M.LEGACY_STRIP_SCALE_TO_FIT:case M.LEGACY_STRIP_FIT_AND_TILE:e.parts.push(function(e){return{transformType:y.FIT,width:Math.round(e.width),height:Math.round(e.height),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i));break;case M.LEGACY_STRIP_SCALE_TO_FILL:e.parts.push(function(e){return{transformType:y.LEGACY_FILL,width:Math.round(e.width),height:Math.round(e.height),alignment:ce(e),upscale:!1,forceUSM:!0,scaleFactor:1,cssUpscaleNeeded:!1}}(i))}}function Ae(e,t){const i=re(e.src.width,e.src.height,y.FIT,t,e.devicePixelRatio,e.upscaleMethod);return{transformType:!e.src.width||!e.src.height?y.FIT:y.FILL,width:Math.round(i.width),height:Math.round(i.height),alignment:F.center,upscale:i.scaleFactor>1,forceUSM:i.forceUSM,scaleFactor:i.scaleFactor,cssUpscaleNeeded:i.cssUpscaleNeeded,upscaleMethodValue:i.upscaleMethodValue}}function be(e){return{transformType:y.CROP,x:Math.round(e.x),y:Math.round(e.y),width:Math.round(e.width),height:Math.round(e.height),upscale:!1,forceUSM:!1,scaleFactor:1,cssUpscaleNeeded:!1}}function we(e,t){t=t||{},e.quality=function(e,t){const i=e.fileType===U.PNG,a=e.fileType===U.JPG,n=e.fileType===U.WEBP,r=e.fileType===U.AVIF,o=a||i||n||r;if(o){const a=j(e.parts),n=(c=a.width,s=a.height,B[le(c,s)].quality);let r=t.quality&&t.quality>=5&&t.quality<=90?t.quality:n;return r=i?r+5:r,r}var c,s;return 0}(e,t),e.progressive=function(e){return!1!==e.progressive}(t),e.watermark=function(e){return e.watermark}(t),e.autoEncode=t.autoEncode??!0,e.encoding=t?.encoding,e.unsharpMask=function(e,t){if(function(e){const t="number"==typeof(e=e||{}).radius&&!isNaN(e.radius)&&e.radius>=.1&&e.radius<=500,i="number"==typeof e.amount&&!isNaN(e.amount)&&e.amount>=0&&e.amount<=10,a="number"==typeof e.threshold&&!isNaN(e.threshold)&&e.threshold>=0&&e.threshold<=255;return t&&i&&a}(t.unsharpMask))return{radius:ue(t.unsharpMask?.radius,2),amount:ue(t.unsharpMask?.amount,2),threshold:ue(t.unsharpMask?.threshold,2)};if(("number"!=typeof(i=(i=t.unsharpMask)||{}).radius||isNaN(i.radius)||0!==i.radius||"number"!=typeof i.amount||isNaN(i.amount)||0!==i.amount||"number"!=typeof i.threshold||isNaN(i.threshold)||0!==i.threshold)&&function(e){const t=j(e.parts);return!(t.scaleFactor>=1)||t.forceUSM||t.transformType===y.FIT}(e))return N;var i;return}(e,t),e.filters=function(e){const t=e.filters||{},i={};Oe(t[Y.CONTRAST],-100,100)&&(i[Y.CONTRAST]=t[Y.CONTRAST]);Oe(t[Y.BRIGHTNESS],-100,100)&&(i[Y.BRIGHTNESS]=t[Y.BRIGHTNESS]);Oe(t[Y.SATURATION],-100,100)&&(i[Y.SATURATION]=t[Y.SATURATION]);Oe(t[Y.HUE],-180,180)&&(i[Y.HUE]=t[Y.HUE]);Oe(t[Y.BLUR],0,100)&&(i[Y.BLUR]=t[Y.BLUR]);return i}(t)}function Oe(e,t,i){return"number"==typeof e&&!isNaN(e)&&0!==e&&e>=t&&e<=i}function Me(e,t,i,a){const n=function(e){return e?.isSEOBot??!1}(a),r=ie(t.id),o=function(e,t){const i=/\.([^.]*)$/,a=new RegExp(`(${K.concat(ee).join("|")})`,"g");if(t&&t.length){let e=t;const n=t.match(i);return n&&z.includes(n[1])&&(e=t.replace(i,"")),encodeURIComponent(e).replace(a,te)}const n=e.match(/\/(.*?)$/);return(n?n[1]:e).replace(i,"")}(t.id,t.name),c=n?1:function(e){return Math.min(e.pixelAspectRatio||1,E)}(i),s=ae(t.id),l=s,u=W(t.id,a?.hasAnimation,a?.allowAnimatedTransform,a?.allowFullGIFTransformation),h={fileName:o,fileExtension:s,fileType:r,fittingType:e,preferredExtension:l,src:{id:t.id,width:t.width,height:t.height,isCropped:!1,isAnimated:de(t.id,a?.hasAnimation)},focalPoint:{x:t.focalPoint&&t.focalPoint.x,y:t.focalPoint&&t.focalPoint.y},parts:[],devicePixelRatio:c,quality:0,upscaleMethod:he(a),progressive:!0,watermark:"",unsharpMask:{},filters:{},transformed:u,allowFullGIFTransformation:a?.allowFullGIFTransformation,isPlaceholderFlow:a?.isPlaceholderFlow};return u&&(Ee(h,t,i),we(h,a)),h}function ye(e,t,i){const a={...i},n=pe("isMobile");switch(e){case M.LEGACY_BG_FIT_AND_TILE:case M.LEGACY_BG_FIT_AND_TILE_HORIZONTAL:case M.LEGACY_BG_FIT_AND_TILE_VERTICAL:case M.LEGACY_BG_NORMAL:const e=n?w:A,i=n?O:b;a.width=Math.min(e,t.width),a.height=Math.min(i,Math.round(a.width/(t.width/t.height))),a.pixelAspectRatio=1}return a}const Ge=D`fit/w_${"width"},h_${"height"}`,Re=D`fill/w_${"width"},h_${"height"},al_${"alignment"}`,Fe=D`fill/w_${"width"},h_${"height"},fp_${"focalPointX"}_${"focalPointY"}`,Ce=D`crop/x_${"x"},y_${"y"},w_${"width"},h_${"height"}`,Se=D`crop/w_${"width"},h_${"height"},al_${"alignment"}`,Pe=D`fill/w_${"width"},h_${"height"},al_${"alignment"}`,Ne=D`,lg_${"upscaleMethodValue"}`,ke=D`,q_${"quality"}`,ve=D`,quality_auto`,xe=D`,usm_${"radius"}_${"amount"}_${"threshold"}`,Be=D`,bl`,He=D`,wm_${"watermark"}`,Ye={[Y.CONTRAST]:D`,con_${"contrast"}`,[Y.BRIGHTNESS]:D`,br_${"brightness"}`,[Y.SATURATION]:D`,sat_${"saturation"}`,[Y.HUE]:D`,hue_${"hue"}`,[Y.BLUR]:D`,blur_${"blur"}`},Ue=D`,enc_auto`,$e=D`,enc_avif`,De=D`,enc_pavif`,je=D`,pstr`,ze=D`,anm_all`;function Ve(e,t,i,a={},n){if(W(t.id,a?.hasAnimation,a?.allowAnimatedTransform,a?.allowFullGIFTransformation)){if(J(t.id)||Q(t.id)){const{alignment:r,...o}=i;t.focalPoint={x:void 0,y:void 0},delete t?.crop,n=Me(e,t,o,a)}else n=n||Me(e,t,i,a);return function(e){const t=[];e.parts.forEach(e=>{switch(e.transformType){case y.CROP:t.push(Ce(e));break;case y.LEGACY_CROP:t.push(Se(e));break;case y.LEGACY_FILL:let i=Pe(e);e.upscale&&(i+=Ne(e)),t.push(i);break;case y.FIT:let a=Ge(e);e.upscale&&(a+=Ne(e)),t.push(a);break;case y.FILL:let n=Re(e);e.upscale&&(n+=Ne(e)),t.push(n);break;case y.FILL_FOCAL:let r=Fe(e);e.upscale&&(r+=Ne(e)),t.push(r)}});let i=t.join("/");if(e.quality&&(i+=ke(e)),e.unsharpMask&&(i+=xe(e.unsharpMask)),e.progressive||(i+=Be(e)),e.watermark&&(i+=He(e)),e.filters&&(i+=Object.keys(e.filters).map(t=>Ye[t](e.filters)).join("")),e.fileType!==U.GIF&&(e.encoding===$.AVIF?(i+=$e(e),i+=ve(e)):e.encoding===$.PAVIF?(i+=De(e),i+=ve(e)):e.autoEncode&&(i+=Ue(e))),e.src?.isAnimated&&e.transformed){const t=X(e.src.id),a=!0===e.isPlaceholderFlow,n=!0===e.allowFullGIFTransformation;a?i+=je(e):t&&n&&(i+=ze(e))}return`${e.src.id}/${L}/${i}/${e.fileName}.${e.preferredExtension}`}(n)}return t.id}const Ze={[G.CENTER]:"50% 50%",[G.TOP_LEFT]:"0% 0%",[G.TOP_RIGHT]:"100% 0%",[G.TOP]:"50% 0%",[G.BOTTOM_LEFT]:"0% 100%",[G.BOTTOM_RIGHT]:"100% 100%",[G.BOTTOM]:"50% 100%",[G.RIGHT]:"100% 50%",[G.LEFT]:"0% 50%"},We=Object.entries(Ze).reduce((e,[t,i])=>(e[i]=t,e),{}),qe=[M.TILE,M.TILE_HORIZONTAL,M.TILE_VERTICAL,M.LEGACY_BG_FIT_AND_TILE,M.LEGACY_BG_FIT_AND_TILE_HORIZONTAL,M.LEGACY_BG_FIT_AND_TILE_VERTICAL],Je=[M.LEGACY_ORIGINAL_SIZE,M.ORIGINAL_SIZE,M.LEGACY_BG_NORMAL];function Xe(e,t,{width:i,height:a}){return e===M.TILE&&t.width>i&&t.height>a}function Qe(e,{width:t,height:i}){if(!t||!i){const a=t||Math.min(980,e.width),n=a/e.width;return{width:a,height:i||e.height*n}}return{width:t,height:i}}function Ke(e,t,i,a="center"){const n={img:{},container:{}};if(e===M.SCALE_TO_FILL){const e=t.focalPoint&&function(e){const t=`${e.x}% ${e.y}%`;return We[t]||""}(t.focalPoint),r=e||a;t.focalPoint&&!e?n.img={objectPosition:et(t,i,t.focalPoint)}:n.img={objectPosition:Ze[r]}}else[M.LEGACY_ORIGINAL_SIZE,M.ORIGINAL_SIZE].includes(e)?n.img={objectFit:"none",top:"auto",left:"auto",right:"auto",bottom:"auto"}:qe.includes(e)&&(n.container={backgroundSize:`${t.width}px ${t.height}px`});return n}function et(e,t,i){const{width:a,height:n}=e,{width:r,height:o}=t,{x:c,y:s}=i;if(!r||!o)return`${c}% ${s}%`;const l=Math.max(r/a,o/n),u=a*l,h=n*l,d=Math.max(0,Math.min(u-r,u*(c/100)-r/2)),g=Math.max(0,Math.min(h-o,h*(s/100)-o/2));return`${d&&Math.floor(d/(u-r)*100)}% ${g&&Math.floor(g/(h-o)*100)}%`}const tt={width:"100%",height:"100%"};function it(e,t,i,a={}){const{autoEncode:n=!0,isSEOBot:r,shouldLoadHQImage:o,hasAnimation:c,allowAnimatedTransform:s,encoding:l}=a;if(!Z(e,t,i))return k;const u=!0,h=s??u,d=W(t.id,c,h);if(!d||o)return at(e,t,i,{...a,autoEncode:n,useSrcset:d});const g={...i,...Qe(t,i)},{alignment:p,htmlTag:_}=g,T=Xe(e,t,g),f=function(e,t,{width:i,height:a},n=!1){if(n)return{width:i,height:a};const r=!Je.includes(e),o=Xe(e,t,{width:i,height:a}),c=!o&&qe.includes(e),s=c?t.width:i,l=c?t.height:a,u=r?function(e,t){return e>900?t?.05:.15:e>500?t?.1:.18:e>200?.25:1}(s,q(t.id)):1;return{width:o?1920:s*u,height:l*u}}(e,t,g,r),m=function(e,t,i){return i?0:qe.includes(t)?1:e>200?2:3}(g.width,e,r),I=function(e,t){const i=qe.includes(e)&&!t;return e===M.SCALE_TO_FILL||i?M.SCALE_TO_FIT:e}(e,T),L=Ke(e,t,i,p),{uri:E}=at(I,t,{...f,alignment:p,htmlTag:_},{autoEncode:n,filters:m?{blur:m}:{},hasAnimation:c,allowAnimatedTransform:h,encoding:l,isPlaceholderFlow:u}),{attr:A={},css:b}=at(e,t,{...g,alignment:p,htmlTag:_},{});return b.img=b.img||{},b.container=b.container||{},Object.assign(b.img,L.img,tt),Object.assign(b.container,L.container),{uri:E,css:b,attr:A,transformed:!0}}function at(e,t,i,a){let n={};if(Z(e,t,i)){const r=ye(e,t,i),o=Me(e,t,r,a);n.uri=Ve(e,t,r,a,o),a?.useSrcset&&(n.srcset=function(e,t,i,a,n){const r=i.pixelAspectRatio||1;return{dpr:[`${1===r?n.uri:Ve(e,t,{...i,pixelAspectRatio:1},a)} 1x`,`${2===r?n.uri:Ve(e,t,{...i,pixelAspectRatio:2},a)} 2x`]}}(e,t,r,a,n)),Object.assign(n,function(e,t){let i;return i=t.htmlTag===C.BG?Te:t.htmlTag===C.SVG?Le:Ie,i(e,t)}(o,r),{transformed:o.transformed})}else n=k;return n}const nt="https://static.wixstatic.com/media/";"undefined"!=typeof window&&window.devicePixelRatio;_e();_e();const rt=nt,{STATIC_MEDIA_URL:ot}=e,ct=({fittingType:e,src:t,target:i,options:a})=>{const n=it(e,t,i,{...a,autoEncode:!0});return n?.uri&&!/^[a-z]+:/.test(n.uri)&&(n.uri=`${ot}${n.uri}`),n},st=/^[a-z]+:/,lt=e=>{const{id:t,containerId:i,uri:a,alt:n,name:o="",role:c,width:s,height:l,displayMode:u,devicePixelRatio:h,quality:d,alignType:g,bgEffectName:p="",focalPoint:_,upscaleMethod:T,className:f="",crop:m,imageStyles:L={},targetWidth:E,targetHeight:A,targetScale:b,onLoad:w=()=>{},onError:O=()=>{},shouldUseLQIP:M,containerWidth:y,containerHeight:G,getPlaceholder:R,isInFirstFold:F,placeholderTransition:C,socialAttrs:S,isSEOBot:P,skipMeasure:N,hasAnimation:k,encoding:v,isFluidLayout:x}=e,B=r.useRef(null);let H="";const Y="blur"===C,U=r.useRef(null);if(!U.current)if(R||M||F||P){const e={upscaleMethod:T,...d||{},shouldLoadHQImage:F,isSEOBot:P,hasAnimation:k,encoding:v};U.current=(R||ct)({fittingType:u,src:{id:a,width:s,height:l,crop:m,name:o,focalPoint:_},target:{width:y,height:G,alignment:g,htmlTag:"img"},options:e}),H=!U.current.transformed||F||P?"":"true"}else U.current={uri:void 0,css:{img:{}},attr:{img:{},container:{}},transformed:!1};const $=!P&&(R||M)&&!F&&U.current.transformed,D=r.useMemo(()=>JSON.stringify({containerId:i,...i&&{containerId:i},...g&&{alignType:g},...N&&{skipMeasure:!0},displayMode:u,...y&&{targetWidth:y},...G&&{targetHeight:G},...E&&{targetWidth:E},...A&&{targetHeight:A},...b&&{targetScale:b},isLQIP:$,isSEOBot:P,lqipTransition:C,encoding:v,imageData:{width:s,height:l,uri:a,name:o,displayMode:u,hasAnimation:k,...d&&{quality:d},...h&&{devicePixelRatio:h},..._&&{focalPoint:_},...m&&{crop:m},...T&&{upscaleMethod:T}}}),[i,g,N,u,y,G,E,A,b,$,P,C,v,s,l,a,o,k,d,h,_,m,T]),j=U.current,z=j?.uri,V=j?.srcset,Z=j.css?.img,W=`${I} ${f}`;r.useEffect(()=>{const e=B.current;w&&e?.currentSrc&&e?.complete&&w({target:e})},[]);const q=j&&!j?.transformed?`max(${s}px, 100%)`:E?`${E}px`:null;return r.createElement("wow-image",{id:t,class:W,"data-image-info":D,"data-motion-part":`BG_IMG ${i}`,"data-bg-effect-name":p,"data-has-ssr-src":H,"data-animate-blur":!P&&$&&Y?"":void 0,"data-is-responsive":x?"true":void 0,style:q?{"--wix-img-max-width":q}:{}},r.createElement("img",{src:z,ref:B,alt:n||"",role:c,style:{...Z,...L},onLoad:w,onError:O,width:y||void 0,height:G||void 0,...S,srcSet:F?V?.dpr?.map(e=>st.test(e)?e:`${ot}${e}`).join(", "):void 0,fetchpriority:F?"high":void 0,loading:!1===F?"lazy":void 0,suppressHydrationWarning:!0}))};var ut="Tj01hh";var ht=e=>{var t,a;const{id:n,alt:o,role:c,className:l,imageStyles:u={},targetWidth:h,targetHeight:d,onLoad:g,onError:p,containerWidth:_,containerHeight:T,isInFirstFold:f,socialAttrs:m,skipMeasure:I,responsiveImageProps:L,zoomedImageResponsiveOverride:E,displayMode:A}=e,b=h||_,w=d||T,{fallbackSrc:O,srcset:M,sources:y,css:G}=L||{},{width:R,height:F,...C}=(null==L||null==(t=L.css)?void 0:t.img)||{},S="original_size"===A?null==L||null==(a=L.css)?void 0:a.img:C;var P;return O&&M&&G?r.createElement("img",i()({fetchpriority:f?"high":void 0,loading:!1===f?"lazy":void 0,sizes:b+"px",srcSet:I?null==E?void 0:E.srcset:null==L?void 0:L.srcset,id:n,src:O,alt:o||"",role:c,style:{...u,...I?{...null==E||null==(P=E.css)?void 0:P.img}:{...S}},onLoad:g,onError:p,className:s(l,ut),width:b,height:w},m)):O&&y&&G?r.createElement("picture",null,y.map(e=>{let{srcset:t,media:i,sizes:a}=e;return r.createElement("source",{key:i,srcSet:t,media:i,sizes:a})}),r.createElement("img",i()({fetchpriority:f?"high":void 0,loading:!1===f?"lazy":void 0,id:n,src:y[0].fallbackSrc,alt:o||"",role:c,style:{...u,objectFit:y[0].imgStyle.objectFit,objectPosition:y[0].imgStyle.objectPosition},onLoad:g,onError:p,className:s(l,ut),width:b,height:w},m))):r.createElement(lt,e)};var dt=e=>{const{id:t,images:a,styles:n,iconSize:o,className:c,shouldRenderPlaceholders:u=!1,translations:h,onMouseEnter:d,onMouseLeave:g,getPlaceholder:p,reportBiOnClick:_}=e,T=u&&o&&p?{getPlaceholder:p,containerWidth:o,containerHeight:o}:{};return r.createElement("div",i()({id:t},l(e),{className:s(c,n.root),onMouseEnter:d,onMouseLeave:g}),r.createElement("ul",{className:n.container,"aria-label":h.ariaLabel},a.map((e,a)=>r.createElement("li",{id:e.containerId,key:e.containerId,onClick:()=>_(e),className:n.listItem},r.createElement(m,i()({className:n.link},e.link,{"aria-label":e.alt}),r.createElement(ht,i()({id:"img_"+a+"_"+t},(e=>{let{link:t,...i}=e;return i})(e),{className:n.image},T,{displayMode:"fit"})))))))};var gt=e=>r.createElement(dt,i()({},e,{styles:o}));const pt=e=>e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`),_t=e=>"linkPopupId"in e,Tt=(e,t)=>{if(_t(e))return e.linkPopupId;{const{pagesMap:i,mainPageId:a}=t||{};if(!i)return;const n=new URL(e.href??"");let r=Object.values(i).find(({pageUriSEO:e})=>!!e&&n.pathname?.includes(e));return r||(r=a?i[a]:void 0),r?.pageId}},ft=e=>{if(void 0!==e)return null===e?"None":e.type},mt=(e,t)=>{if(!e?.type)return;const{type:i}=e;switch(i){case"AnchorLink":return e.anchorDataId;case"DocumentLink":return e.docInfo?.name;case"PageLink":const i=Tt(e,t);return i&&t?.pagesMap?.[i]?.title;default:return e.href}},It=(e,t,i)=>{const{link:a,value:n,details:r,actionName:o,elementType:c,trackClicksAnalytics:s,pagesMetadata:l,...u}=t;if(!s||"function"!=typeof e)return;const h=l&&{...l,pagesMap:window.viewerModel?.siteFeaturesConfigs?.router?.pagesMap},d=((e,t)=>{if(!e?.type)return;const{type:i}=e;switch(i){case"AnchorLink":return(e=>"anchorDataId"in e&&("SCROLL_TO_TOP"===e.anchorDataId||"SCROLL_TO_BOTTOM"===e.anchorDataId))(e)?void 0:{id:e.anchorDataId};case"DocumentLink":return{id:e.docInfo?.docId};case"PageLink":return{id:Tt(e,t),isLightbox:_t(e)};default:return}})(a,h),g=r||d?JSON.stringify({...d,...r}):void 0;e({src:76,evid:1113,...{...u,bl:navigator.language,url:window.location.href,details:g,elementType:c??"Unknown",actionName:o??ft(a),value:n??mt(a,h)}},{endpoint:"pa",...i})};var Lt;!function(e){e.Text="Text",e.Menu="Menu",e.Image="Image",e.Input="Input",e.Login="Login",e.Button="Button",e.Social="Social",e.Gallery="Gallery",e.Community="Community",e.Decorative="Decorative",e.MenuAndSearch="MenuAndSearch",e.MenuAndAnchor="MenuAndAnchor"}(Lt||(Lt={}));var Et;const At={LinkBar_Responsive:{component:gt,controller:(Et=e=>{let{mapperProps:t,stateValues:i}=e;const{compId:a,language:n,fullNameCompType:r,trackClicksAnalytics:o,...c}=t;return{...c,reportBiOnClick:e=>{var t;It(i.reportBi,{language:n,trackClicksAnalytics:o,element_id:a,value:null==(t=e.link)?void 0:t.href,elementTitle:e.title,details:{uri:e.uri},elementType:r,elementGroup:Lt.Social})}}},{useComponentProps:(e,t,i)=>{const a=(e=>({...e,updateStyles:t=>{const i=Object.entries(t).reduce((e,[t,i])=>{return{...e,[(a=t,a.startsWith("--")?t:pt(t))]:void 0===i?null:i};var a},{});e.updateStyles(i)}}))(i);return Et({mapperProps:e,stateValues:t,controllerUtils:a})}})}}}(),n}()}); //# sourceMappingURL=https://static.parastorage.com/services/editor-elements-library/dist/thunderbolt/rb_wixui.thunderbolt[LinkBar_Responsive].07fb04f9.bundle.min.js.map